package org.ymjava.medical.wx.web;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.ymjava.medical.core.util.ResponseUtil;
import org.ymjava.medical.db.AllPackage.biz.BannerListBiz;
import org.ymjava.medical.db.AllPackage.entity.BannerList;

import java.util.List;

@RestController
@RequestMapping("/wx_answer/banner_list")
public class BannerListController {

    private final Log logger = LogFactory.getLog(BannerListController.class);

    @Autowired
    private BannerListBiz bannerListBiz;

    @GetMapping("get_list")
    public  Object get_list(){

        BannerList banner = new BannerList();
        banner.setDeleted(1);

        List<BannerList> list = bannerListBiz.selectList(banner);

        return ResponseUtil.ok(list);
    }
}
